aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.tes...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-07-08 12:31:44 +0100
committerMichael Williamson <mike@zwobble.org>2023-07-08 12:31:44 +0100
commitaf30cfaef7e34136b3f2e01f5cc30b3590587add (patch)
treea19ad7bd6a5b1bf8039a683c84e1ea5a0c51f2e2 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent1bac5891bdd6db84340c0de650d2c02d3d251207 (diff)
Generate WASM for string add
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected35
1 files changed, 35 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
new file mode 100644
index 00000000..e7e8e6ba
--- /dev/null
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenStringAddTests]/[method:stringAddIsCompiledToCallToRuntimeStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -0,0 +1,35 @@
+
+module.wasm: file format wasm 0x1
+
+Section Details:
+
+Type[2]:
+ - type[0] (i32, i32) -> i32
+ - type[1] () -> nil
+Import[3]:
+ - table[0] type=funcref initial=0 <- env.__indirect_function_table
+ - func[0] sig=0 <shed__runtime__string_add> <- env.shed__runtime__string_add
+ - memory[0] pages: initial=0 <- env.__linear_memory
+Function[1]:
+ - func[1] sig=1 <f>
+Code[1]:
+ - func[1] size=8 <f>
+Custom:
+ - name: "linking"
+ - symbol table [count=2]
+ - 0: F <shed__runtime__string_add> func=0 [ undefined explicit_name binding=global vis=default ]
+ - 1: F <f> func=1 [ binding=global vis=default ]
+Custom:
+ - name: "reloc.CODE"
+ - relocations for section: 3 (Code) [1]
+ - R_WASM_FUNCTION_INDEX_LEB offset=0x000008(file=0x00008e) symbol=0 <shed__runtime__string_add>
+Custom:
+ - name: "name"
+ - func[0] <shed__runtime__string_add>
+ - func[1] <f>
+
+Code Disassembly:
+
+00008c func[1] <f>:
+ 00008d: 10 80 80 80 80 00 | call 0 <shed__runtime__string_add>
+ 000093: 0b | end \ No newline at end of file